import router from '@ohos.router';
import adc_sensor from '@ohos.adc_sensor';


export default {
    data: {
        title: "",
        data1: Math.floor(adc_sensor.gettds() * 100) / 100,
        data2: Math.floor(adc_sensor.getph()* 100) / 100,
        data3: Math.floor(adc_sensor.gettbs_value()* 100) / 100,
        data4: adc_sensor.gettbs_level(),
    },
//    onInit() {
//        this.title = "Hello World";
//    },
    back: function () {
        router.back()
    },
}
